<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      display: flex;
      width: 100vw;
      height: 100vh;
      margin:0;
      padding:0;
      justify-content: center;
      align-items: center;
    }
    .content {
      background: url(https://assets.codepen.io/2002878/random-dice.png);
      background-position: 0% 100%;
      width: 366px;
      height: 366px;
      animation: roll .2s steps(5,start) infinite;
      position:relative;
    }
    @keyframes roll {
      /* from {
        background-position: 0% 100%;
      } */
      to {
        background-position: 100% 100%;
      }
    }
    #roll {
      display: none;
    }
    #roll:checked + label .content {
      animation-play-state: paused;
    }
    .content::before {
      content:'?';
      background:rgba(255,255,255,.8);
      width: inherit;
      height: inherit;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size:320px;
      font-family: Helvetica;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 60px;
    }
    #roll:checked +label .content::before{
      display: none;
    }
  </style>
</head>
<body>
  <input type="checkbox" id="roll">
  <label for="roll">
    <div class="content"></div>
  </label>
  
</body>
</html>